package bold.deposit.event;

import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

/**
 * 监听 1
 */
@Component
public class Listener1 implements ApplicationListener<Event1> {

    @Override
    public void onApplicationEvent(Event1 event) {
        System.out.println("监听 1");
        event.print();
    }
}
